package cn.juforg.phoneshotgun;

public class Constants {
	
	
	
	public static final int ACCURACY_RANGE = 2;				//精度误差 
	public static final int UPDATE_INTERVAL = 500;		//重力感应检测间隔
	
	/**
	 * 手势 -- 手机被移动的方向
	 * @author juforg
	 *
	 */
	public class Gesture{
		public static final int NONE_GESTURE = 0;
		public static final int UP_GESTURE = 8;
		public static final int LEFT_GESTURE = 4;
		public static final int RIGHT_GESTURE = 6;
		public static final int DOWN_GESTURE = 2;
	}
	
	/**
	 * 姿态 -- 手机当前的姿态 
	 * @author juforg
	 *
	 */
	public class Posture{
		public static final int FLATWISE = 0;			//水平 屏幕朝上
		public static final int IN_FLATWISE = 1;		//水平 屏幕朝下
		public static final int THWART = 2;				//横放 屏幕朝右横放
		public static final int IN_THWART = 3;			//横放 屏幕朝左横放
		public static final int UPRIGHT = 4;			//竖放 头朝上
		public static final int IN_UPRIGHT = 5;			//竖放 头朝下
		
	}
}
